Import('env')

ch02_env = env.Clone()

objroot = ch02_env['objroot']
srcroot = ch02_env['srcroot']
ch02_env.Append(CPPPATH=['$srcroot/', '$srcroot/common'])
ch02_env.Append(LIBPATH=['$objroot/common'])
ch02_env.Prepend(LIBS=['clrscommon', 'clrsarray'])

ch02_env.Program('test_bubble_sort',
  ['test_bubble_sort.c',
   'bubble_sort.c'])
ch02_env.Program('test_count_inversion',
  ['test_count_inversion.c',
   'count_inversion.c'])
ch02_env.Program('test_merge_sort',
  ['test_merge_sort.c',
   'merge_sort.c'])
ch02_env.Program('test_insert_sort',
  ['test_insert_sort.c',
   'insert_sort.c'])
